﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Camc.Quality.Migrations
{
    public partial class update_form : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "AnalysisTableInfors",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    TableCode = table.Column<string>(nullable: true),
                    TableName = table.Column<string>(nullable: true),
                    ShowSequence = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_AnalysisTableInfors", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "BopDescs",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    Model = table.Column<string>(nullable: true),
                    ModelName = table.Column<string>(nullable: true),
                    LotNo = table.Column<string>(nullable: true),
                    DrawingNo = table.Column<string>(nullable: true),
                    StageSign = table.Column<string>(nullable: true),
                    Status = table.Column<int>(nullable: false),
                    Property = table.Column<int>(nullable: false),
                    IsUsed = table.Column<int>(nullable: false),
                    ReleaseTime = table.Column<DateTime>(nullable: true),
                    ReleaseUserId = table.Column<long>(nullable: true),
                    QualityStatus = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_BopDescs", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "EnvironmentEntity",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    Temperature = table.Column<string>(nullable: true),
                    Temperature_DisplayName = table.Column<string>(nullable: true),
                    Temperature_Enable = table.Column<bool>(nullable: false),
                    Temperature_Show = table.Column<bool>(nullable: false),
                    Temperature_Property = table.Column<int>(nullable: false),
                    Humidity = table.Column<string>(nullable: true),
                    Humidity_DisplayName = table.Column<string>(nullable: true),
                    Humidity_Enable = table.Column<bool>(nullable: false),
                    Humidity_Show = table.Column<bool>(nullable: false),
                    Humidity_Property = table.Column<int>(nullable: false),
                    AtmPressure = table.Column<string>(nullable: true),
                    AtmPressure_DisplayName = table.Column<string>(nullable: true),
                    AtmPressure_Enable = table.Column<bool>(nullable: false),
                    AtmPressure_Show = table.Column<bool>(nullable: false),
                    AtmPressure_Property = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EnvironmentEntity", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "FileTransfers",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    IPAddress = table.Column<string>(nullable: true),
                    Port = table.Column<string>(nullable: true),
                    PadID = table.Column<string>(nullable: true),
                    PadName = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FileTransfers", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "InspectionSignatureEntity",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    InspectionSignatureName = table.Column<string>(nullable: true),
                    FirstOperator = table.Column<string>(nullable: true),
                    FirstOperator_DisplayName = table.Column<string>(nullable: true),
                    FirstOperator_Enable = table.Column<bool>(nullable: false),
                    FirstOperator_Show = table.Column<bool>(nullable: false),
                    FirstOperator_Property = table.Column<int>(nullable: false),
                    FirstOperatorData = table.Column<DateTime>(nullable: true),
                    FirstOperatorData_DisplayName = table.Column<string>(nullable: true),
                    FirstOperatorData_Enable = table.Column<bool>(nullable: false),
                    FirstOperatorData_Show = table.Column<bool>(nullable: false),
                    FirstOperatorData_Property = table.Column<int>(nullable: false),
                    SecondOperator = table.Column<string>(nullable: true),
                    SecondOperator_DisplayName = table.Column<string>(nullable: true),
                    SecondOperator_Enable = table.Column<bool>(nullable: false),
                    SecondOperator_Show = table.Column<bool>(nullable: false),
                    SecondOperator_Property = table.Column<int>(nullable: false),
                    SecondOperatorData = table.Column<DateTime>(nullable: true),
                    SecondOperatorData_DisplayName = table.Column<string>(nullable: true),
                    SecondOperatorData_Enable = table.Column<bool>(nullable: false),
                    SecondOperatorData_Show = table.Column<bool>(nullable: false),
                    SecondOperatorData_Property = table.Column<int>(nullable: false),
                    ThirdOperator = table.Column<string>(nullable: true),
                    ThirdOperator_DisplayName = table.Column<string>(nullable: true),
                    ThirdOperator_Enable = table.Column<bool>(nullable: false),
                    ThirdOperator_Show = table.Column<bool>(nullable: false),
                    ThirdOperator_Property = table.Column<int>(nullable: false),
                    ThirdOperatorData = table.Column<DateTime>(nullable: true),
                    ThirdOperatorData_DisplayName = table.Column<string>(nullable: true),
                    ThirdOperatorData_Enable = table.Column<bool>(nullable: false),
                    ThirdOperatorData_Show = table.Column<bool>(nullable: false),
                    ThirdOperatorData_Property = table.Column<int>(nullable: false),
                    FourthOperator = table.Column<string>(nullable: true),
                    FourthOperator_DisplayName = table.Column<string>(nullable: true),
                    FourthOperator_Enable = table.Column<bool>(nullable: false),
                    FourthOperator_Show = table.Column<bool>(nullable: false),
                    FourthOperator_Property = table.Column<int>(nullable: false),
                    FourthOperatorData = table.Column<DateTime>(nullable: true),
                    FourthOperatorData_DisplayName = table.Column<string>(nullable: true),
                    FourthOperatorData_Enable = table.Column<bool>(nullable: false),
                    FourthOperatorData_Show = table.Column<bool>(nullable: false),
                    FourthOperatorData_Property = table.Column<int>(nullable: false),
                    FifthOperator = table.Column<string>(nullable: true),
                    FifthOperator_DisplayName = table.Column<string>(nullable: true),
                    FifthOperator_Enable = table.Column<bool>(nullable: false),
                    FifthOperator_Show = table.Column<bool>(nullable: false),
                    FifthOperator_Property = table.Column<int>(nullable: false),
                    FifthOperatorData = table.Column<DateTime>(nullable: true),
                    FifthOperatorData_DisplayName = table.Column<string>(nullable: true),
                    FifthOperatorData_Enable = table.Column<bool>(nullable: false),
                    FifthOperatorData_Show = table.Column<bool>(nullable: false),
                    FifthOperatorData_Property = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_InspectionSignatureEntity", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "MakeResourcesEntity",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    WorkStepEntityId = table.Column<Guid>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Index = table.Column<int>(nullable: false),
                    Type = table.Column<string>(nullable: true),
                    ErpId = table.Column<string>(nullable: true),
                    SpecsCode = table.Column<string>(nullable: true),
                    Name = table.Column<string>(nullable: true),
                    Remark = table.Column<string>(nullable: true),
                    IdentifyType = table.Column<string>(nullable: true),
                    StandardNumber = table.Column<string>(nullable: true),
                    IsRequired = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MakeResourcesEntity", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "MeasuredResultEntity",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    FirstMeasuredValues = table.Column<string>(nullable: true),
                    FirstMeasuredValues_DisplayName = table.Column<string>(nullable: true),
                    FirstMeasuredValues_Enable = table.Column<bool>(nullable: false),
                    FirstMeasuredValues_Show = table.Column<bool>(nullable: false),
                    FirstMeasuredValues_Property = table.Column<int>(nullable: false),
                    SecondMeasuredValues = table.Column<string>(nullable: true),
                    SecondMeasuredValues_DisplayName = table.Column<string>(nullable: true),
                    SecondMeasuredValues_Enable = table.Column<bool>(nullable: false),
                    SecondMeasuredValues_Show = table.Column<bool>(nullable: false),
                    SecondMeasuredValues_Property = table.Column<int>(nullable: false),
                    ThirdMeasuredValues = table.Column<string>(nullable: true),
                    ThirdMeasuredValues_DisplayName = table.Column<string>(nullable: true),
                    ThirdMeasuredValues_Enable = table.Column<bool>(nullable: false),
                    ThirdMeasuredValues_Show = table.Column<bool>(nullable: false),
                    ThirdMeasuredValues_Property = table.Column<int>(nullable: false),
                    FourthMeasuredValues = table.Column<string>(nullable: true),
                    FourthMeasuredValues_DisplayName = table.Column<string>(nullable: true),
                    FourthMeasuredValues_Enable = table.Column<bool>(nullable: false),
                    FourthMeasuredValues_Show = table.Column<bool>(nullable: false),
                    FourthMeasuredValues_Property = table.Column<int>(nullable: false),
                    FirstConfirmResult = table.Column<string>(nullable: true),
                    FirstConfirmResult_DisplayName = table.Column<string>(nullable: true),
                    FirstConfirmResult_Enable = table.Column<bool>(nullable: false),
                    FirstConfirmResult_Show = table.Column<bool>(nullable: false),
                    FirstConfirmResult_Property = table.Column<int>(nullable: false),
                    SecondConfirmResult = table.Column<string>(nullable: true),
                    SecondConfirmResult_DisplayName = table.Column<string>(nullable: true),
                    SecondConfirmResult_Enable = table.Column<bool>(nullable: false),
                    SecondConfirmResult_Show = table.Column<bool>(nullable: false),
                    SecondConfirmResult_Property = table.Column<int>(nullable: false),
                    ThirdConfirmResult = table.Column<string>(nullable: true),
                    ThirdConfirmResult_DisplayName = table.Column<string>(nullable: true),
                    ThirdConfirmResult_Enable = table.Column<bool>(nullable: false),
                    ThirdConfirmResult_Show = table.Column<bool>(nullable: false),
                    ThirdConfirmResult_Property = table.Column<int>(nullable: false),
                    MeasuredActual = table.Column<string>(nullable: true),
                    MeasuredActual_DisplayName = table.Column<string>(nullable: true),
                    MeasuredActual_Enable = table.Column<bool>(nullable: false),
                    MeasuredActual_Show = table.Column<bool>(nullable: false),
                    MeasuredActual_Property = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MeasuredResultEntity", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "MultiMediaEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    PhotoNo = table.Column<string>(nullable: true),
                    PhotoNo_DisplayName = table.Column<string>(nullable: true),
                    PhotoNo_Enable = table.Column<bool>(nullable: false),
                    PhotoNo_Show = table.Column<bool>(nullable: false),
                    PhotoNo_Property = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MultiMediaEntities", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "OperationHistorys",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    BusinessId = table.Column<Guid>(nullable: false),
                    BusinessType = table.Column<int>(nullable: false),
                    OperationType = table.Column<int>(nullable: false),
                    Content = table.Column<string>(nullable: true),
                    UserName = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_OperationHistorys", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "RecordRequirements",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    RecordLocation = table.Column<string>(nullable: true),
                    RecordLocation_DisplayName = table.Column<string>(nullable: true),
                    RecordLocation_Enable = table.Column<bool>(nullable: false),
                    RecordLocation_Show = table.Column<bool>(nullable: false),
                    RecordLocation_Property = table.Column<int>(nullable: false),
                    RecordStatus = table.Column<string>(nullable: true),
                    RecordStatus_DisplayName = table.Column<string>(nullable: true),
                    RecordStatus_Enable = table.Column<bool>(nullable: false),
                    RecordStatus_Show = table.Column<bool>(nullable: false),
                    RecordStatus_Property = table.Column<int>(nullable: false),
                    RecordRequire = table.Column<string>(nullable: true),
                    RecordRequire_DisplayName = table.Column<string>(nullable: true),
                    RecordRequire_Enable = table.Column<bool>(nullable: false),
                    RecordRequire_Show = table.Column<bool>(nullable: false),
                    RecordRequire_Property = table.Column<int>(nullable: false),
                    RecordMainopoint = table.Column<string>(nullable: true),
                    RecordMainopoint_DisplayName = table.Column<string>(nullable: true),
                    RecordMainopoint_Enable = table.Column<bool>(nullable: false),
                    RecordMainopoint_Show = table.Column<bool>(nullable: false),
                    RecordMainopoint_Property = table.Column<int>(nullable: false),
                    DesignerDemand = table.Column<string>(nullable: true),
                    DesignerDemand_DisplayName = table.Column<string>(nullable: true),
                    DesignerDemand_Enable = table.Column<bool>(nullable: false),
                    DesignerDemand_Show = table.Column<bool>(nullable: false),
                    DesignerDemand_Property = table.Column<int>(nullable: false),
                    ProcessorDemand = table.Column<string>(nullable: true),
                    ProcessorDemand_DisplayName = table.Column<string>(nullable: true),
                    ProcessorDemand_Enable = table.Column<bool>(nullable: false),
                    ProcessorDemand_Show = table.Column<bool>(nullable: false),
                    ProcessorDemand_Property = table.Column<int>(nullable: false),
                    Remarks = table.Column<string>(nullable: true),
                    Remarks_DisplayName = table.Column<string>(nullable: true),
                    Remarks_Enable = table.Column<bool>(nullable: false),
                    Remarks_Show = table.Column<bool>(nullable: false),
                    Remarks_Property = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RecordRequirements", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "REnvironmentEntity",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    Temperature = table.Column<string>(nullable: true),
                    Temperature_DisplayName = table.Column<string>(nullable: true),
                    Humidity = table.Column<string>(nullable: true),
                    Humidity_DisplayName = table.Column<string>(nullable: true),
                    AtmPressure = table.Column<string>(nullable: true),
                    AtmPressure_DisplayName = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_REnvironmentEntity", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "RInspectionSignatureEntity",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    InspectionSignatureName = table.Column<string>(nullable: true),
                    FirstOperator = table.Column<string>(nullable: true),
                    FirstOperator_DisplayName = table.Column<string>(nullable: true),
                    FirstOperatorData = table.Column<DateTime>(nullable: true),
                    FirstOperatorData_DisplayName = table.Column<string>(nullable: true),
                    SecondOperator = table.Column<string>(nullable: true),
                    SecondOperator_DisplayName = table.Column<string>(nullable: true),
                    SecondOperatorData = table.Column<DateTime>(nullable: true),
                    SecondOperatorData_DisplayName = table.Column<string>(nullable: true),
                    ThirdOperator = table.Column<string>(nullable: true),
                    ThirdOperator_DisplayName = table.Column<string>(nullable: true),
                    ThirdOperatorData = table.Column<DateTime>(nullable: true),
                    ThirdOperatorData_DisplayName = table.Column<string>(nullable: true),
                    FourthOperator = table.Column<string>(nullable: true),
                    FourthOperator_DisplayName = table.Column<string>(nullable: true),
                    FourthOperatorData = table.Column<DateTime>(nullable: true),
                    FourthOperatorData_DisplayName = table.Column<string>(nullable: true),
                    FifthOperator = table.Column<string>(nullable: true),
                    FifthOperator_DisplayName = table.Column<string>(nullable: true),
                    FifthOperatorData = table.Column<DateTime>(nullable: true),
                    FifthOperatorData_DisplayName = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RInspectionSignatureEntity", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "RMakeResourcesEntity",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    RWorkStepEntityId = table.Column<Guid>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Index = table.Column<int>(nullable: false),
                    Type = table.Column<string>(nullable: true),
                    ErpId = table.Column<string>(nullable: true),
                    SpecsCode = table.Column<string>(nullable: true),
                    Name = table.Column<string>(nullable: true),
                    Remark = table.Column<string>(nullable: true),
                    IdentifyType = table.Column<string>(nullable: true),
                    StandardNumber = table.Column<string>(nullable: true),
                    IsRequired = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RMakeResourcesEntity", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "RMeasuredResultEntity",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    FirstMeasuredValues = table.Column<string>(nullable: true),
                    FirstMeasuredValues_DisplayName = table.Column<string>(nullable: true),
                    SecondMeasuredValues = table.Column<string>(nullable: true),
                    SecondMeasuredValues_DisplayName = table.Column<string>(nullable: true),
                    ThirdMeasuredValues = table.Column<string>(nullable: true),
                    ThirdMeasuredValues_DisplayName = table.Column<string>(nullable: true),
                    FourthMeasuredValues = table.Column<string>(nullable: true),
                    FourthMeasuredValues_DisplayName = table.Column<string>(nullable: true),
                    ConfirmResult = table.Column<string>(nullable: true),
                    ConfirmResult_DisplayName = table.Column<string>(nullable: true),
                    SecondConfirmResult = table.Column<string>(nullable: true),
                    SecondConfirmResult_DisplayName = table.Column<string>(nullable: true),
                    ThirdConfirmResult = table.Column<string>(nullable: true),
                    ThirdConfirmResult_DisplayName = table.Column<string>(nullable: true),
                    MeasuredActual = table.Column<string>(nullable: true),
                    MeasuredActual_DisplayName = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RMeasuredResultEntity", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "RMultiMediaEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    PhotoNo = table.Column<string>(nullable: true),
                    PhotoNo_DisplayName = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RMultiMediaEntities", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "RRecordRequirements",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    RecordLocation = table.Column<string>(nullable: true),
                    RecordLocation_DisplayName = table.Column<string>(nullable: true),
                    RecordStatus = table.Column<string>(nullable: true),
                    RecordStatus_DisplayName = table.Column<string>(nullable: true),
                    RecordRequire = table.Column<string>(nullable: true),
                    RecordRequire_DisplayName = table.Column<string>(nullable: true),
                    RecordMainopoint = table.Column<string>(nullable: true),
                    RecordMainopoint_DisplayName = table.Column<string>(nullable: true),
                    DesignerDemand = table.Column<string>(nullable: true),
                    DesignerDemand_DisplayName = table.Column<string>(nullable: true),
                    ProcessorDemand = table.Column<string>(nullable: true),
                    ProcessorDemand_DisplayName = table.Column<string>(nullable: true),
                    Remarks = table.Column<string>(nullable: true),
                    Remarks_DisplayName = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RRecordRequirements", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "RTechniqueEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    TechniqueEntityId = table.Column<Guid>(nullable: false),
                    TechniqueName = table.Column<string>(nullable: true),
                    TechniqueNumber = table.Column<string>(nullable: true),
                    TechniqueAuthor = table.Column<string>(nullable: true),
                    CompileTime = table.Column<DateTime>(nullable: true),
                    SystemCode = table.Column<string>(nullable: true),
                    ProductCode = table.Column<string>(nullable: true),
                    ModuleCode = table.Column<string>(nullable: true),
                    ModuleName = table.Column<string>(nullable: true),
                    StageSign = table.Column<int>(nullable: false),
                    TechniqueType = table.Column<int>(nullable: false),
                    TechniqueCharacter = table.Column<string>(nullable: true),
                    Shape = table.Column<int>(nullable: false),
                    SecretDegree = table.Column<int>(nullable: false),
                    UseUnit = table.Column<string>(nullable: true),
                    UseTime = table.Column<string>(nullable: true),
                    BasisFile = table.Column<string>(nullable: true),
                    IssueUnit = table.Column<string>(nullable: true),
                    TechniqueExplain = table.Column<string>(nullable: true),
                    Remark = table.Column<string>(nullable: true),
                    Model = table.Column<string>(nullable: true),
                    LotNo = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RTechniqueEntities", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "RVideoEntity",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    RWorkStepEntityId = table.Column<Guid>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Index = table.Column<int>(nullable: false),
                    VideoFile = table.Column<string>(nullable: true),
                    FileName = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RVideoEntity", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "TechniqueEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    OriginalPPSId = table.Column<string>(nullable: true),
                    TechniqueName = table.Column<string>(nullable: true),
                    TechniqueNumber = table.Column<string>(nullable: true),
                    TechniqueAuthor = table.Column<string>(nullable: true),
                    CompileTime = table.Column<DateTime>(nullable: true),
                    SystemCode = table.Column<string>(nullable: true),
                    ProductCode = table.Column<string>(nullable: true),
                    ModuleCode = table.Column<string>(nullable: true),
                    ModuleName = table.Column<string>(nullable: true),
                    StageSign = table.Column<int>(nullable: false),
                    TechniqueType = table.Column<int>(nullable: false),
                    TechniqueCharacter = table.Column<string>(nullable: true),
                    Shape = table.Column<int>(nullable: false),
                    SecretDegree = table.Column<int>(nullable: false),
                    UseUnit = table.Column<string>(nullable: true),
                    UseTime = table.Column<string>(nullable: true),
                    BasisFile = table.Column<string>(nullable: true),
                    IssueUnit = table.Column<string>(nullable: true),
                    TechniqueExplain = table.Column<string>(nullable: true),
                    Remark = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TechniqueEntities", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "VideoEntity",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    WorkStepEntityId = table.Column<Guid>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Index = table.Column<int>(nullable: false),
                    VideoFile = table.Column<string>(nullable: true),
                    FileName = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_VideoEntity", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "BopNodes",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    BopDescId = table.Column<Guid>(nullable: false),
                    ParentId = table.Column<Guid>(nullable: false),
                    NodeDrawingNo = table.Column<string>(nullable: true),
                    NodeName = table.Column<string>(nullable: true),
                    NodeType = table.Column<int>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    NodeLevel = table.Column<int>(nullable: false),
                    ProcessCode = table.Column<string>(nullable: true),
                    IsLeaf = table.Column<int>(nullable: false),
                    ParentCode = table.Column<string>(nullable: true),
                    NodeCode = table.Column<string>(nullable: true),
                    IsExport = table.Column<int>(nullable: false),
                    PadId = table.Column<string>(nullable: true),
                    PadName = table.Column<string>(nullable: true),
                    TechniqueEntityId = table.Column<Guid>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_BopNodes", x => x.Id);
                    table.ForeignKey(
                        name: "FK_BopNodes_BopDescs_BopDescId",
                        column: x => x.BopDescId,
                        principalTable: "BopDescs",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "TransducerConverter",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    TechniqueEntityId = table.Column<Guid>(nullable: true),
                    ProcessesEntityId = table.Column<Guid>(nullable: true),
                    WorkStepEntityId = table.Column<Guid>(nullable: true),
                    Sort = table.Column<int>(nullable: false),
                    Index = table.Column<int>(nullable: false),
                    DianLanShu = table.Column<string>(nullable: true),
                    BianHuanQi = table.Column<string>(nullable: true),
                    BianHuanQiCode = table.Column<string>(nullable: true),
                    BianHuanQiNumber = table.Column<string>(nullable: true),
                    DianLanShu2 = table.Column<string>(nullable: true),
                    ChuanGanQi = table.Column<string>(nullable: true),
                    ChuanGanQiCode = table.Column<string>(nullable: true),
                    ChuanGanQiNumber = table.Column<string>(nullable: true),
                    IsDuiYing = table.Column<bool>(nullable: false),
                    InspectionSignatureEntityId = table.Column<Guid>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TransducerConverter", x => x.Id);
                    table.ForeignKey(
                        name: "FK_TransducerConverter_InspectionSignatureEntity_InspectionSignatureEntityId",
                        column: x => x.InspectionSignatureEntityId,
                        principalTable: "InspectionSignatureEntity",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                });

            migrationBuilder.CreateTable(
                name: "RTransducerConverter",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    RTechniqueEntityId = table.Column<Guid>(nullable: true),
                    RProcessesEntityId = table.Column<Guid>(nullable: true),
                    RWorkStepEntityId = table.Column<Guid>(nullable: true),
                    Sort = table.Column<int>(nullable: false),
                    Index = table.Column<int>(nullable: false),
                    DianLanShu = table.Column<string>(nullable: true),
                    BianHuanQi = table.Column<string>(nullable: true),
                    BianHuanQiCode = table.Column<string>(nullable: true),
                    BianHuanQiNumber = table.Column<string>(nullable: true),
                    DianLanShu2 = table.Column<string>(nullable: true),
                    ChuanGanQi = table.Column<string>(nullable: true),
                    ChuanGanQiCode = table.Column<string>(nullable: true),
                    ChuanGanQiNumber = table.Column<string>(nullable: true),
                    IsDuiYing = table.Column<bool>(nullable: false),
                    InspectionSignatureEntityId = table.Column<Guid>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RTransducerConverter", x => x.Id);
                    table.ForeignKey(
                        name: "FK_RTransducerConverter_RInspectionSignatureEntity_InspectionSignatureEntityId",
                        column: x => x.InspectionSignatureEntityId,
                        principalTable: "RInspectionSignatureEntity",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                });

            migrationBuilder.CreateTable(
                name: "RChangeRecordEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    RTechniqueEntityId = table.Column<Guid>(nullable: false),
                    Versions = table.Column<string>(nullable: true),
                    FileNumber = table.Column<string>(nullable: true),
                    ApprovalTime = table.Column<DateTime>(nullable: true),
                    UpdateReason = table.Column<string>(nullable: true),
                    BasisFile = table.Column<string>(nullable: true),
                    Remark = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RChangeRecordEntities", x => x.Id);
                    table.ForeignKey(
                        name: "FK_RChangeRecordEntities_RTechniqueEntities_RTechniqueEntityId",
                        column: x => x.RTechniqueEntityId,
                        principalTable: "RTechniqueEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "RProcessesEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    RTechniqueEntityId = table.Column<Guid>(nullable: false),
                    ProcessesEntityId = table.Column<Guid>(nullable: false),
                    ProcessesExplain = table.Column<string>(nullable: true),
                    ProcessesSequence = table.Column<int>(nullable: false),
                    ProcessesName = table.Column<string>(nullable: true),
                    ProcessesWorking = table.Column<decimal>(nullable: false),
                    ProcessesType = table.Column<string>(nullable: true),
                    ProcessesCharacteristic = table.Column<string>(nullable: true),
                    URL = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RProcessesEntities", x => x.Id);
                    table.ForeignKey(
                        name: "FK_RProcessesEntities_RTechniqueEntities_RTechniqueEntityId",
                        column: x => x.RTechniqueEntityId,
                        principalTable: "RTechniqueEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "ChangeRecordEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    TechniqueEntityId = table.Column<Guid>(nullable: false),
                    Versions = table.Column<string>(nullable: true),
                    FileNumber = table.Column<string>(nullable: true),
                    ApprovalTime = table.Column<DateTime>(nullable: true),
                    UpdateReason = table.Column<string>(nullable: true),
                    BasisFile = table.Column<string>(nullable: true),
                    Remark = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ChangeRecordEntities", x => x.Id);
                    table.ForeignKey(
                        name: "FK_ChangeRecordEntities_TechniqueEntities_TechniqueEntityId",
                        column: x => x.TechniqueEntityId,
                        principalTable: "TechniqueEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "ProcessesEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    TechniqueEntityId = table.Column<Guid>(nullable: false),
                    OriginalProcessesId = table.Column<string>(nullable: true),
                    ProcessesExplain = table.Column<string>(nullable: true),
                    ProcessesSequence = table.Column<int>(nullable: false),
                    ProcessesName = table.Column<string>(nullable: true),
                    ProcessesWorking = table.Column<decimal>(nullable: false),
                    ProcessesType = table.Column<string>(nullable: true),
                    ProcessesCharacteristic = table.Column<string>(nullable: true),
                    URL = table.Column<string>(nullable: true),
                    PadId = table.Column<string>(nullable: true),
                    PadName = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProcessesEntities", x => x.Id);
                    table.ForeignKey(
                        name: "FK_ProcessesEntities_TechniqueEntities_TechniqueEntityId",
                        column: x => x.TechniqueEntityId,
                        principalTable: "TechniqueEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "BopContents",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    BopNodeId = table.Column<Guid>(nullable: false),
                    Remark = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_BopContents", x => x.Id);
                    table.ForeignKey(
                        name: "FK_BopContents_BopNodes_BopNodeId",
                        column: x => x.BopNodeId,
                        principalTable: "BopNodes",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "RResourcesEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    RTechniqueEntityId = table.Column<Guid>(nullable: false),
                    RProcessesEntityId = table.Column<Guid>(nullable: false),
                    RWorkStepEntityId = table.Column<Guid>(nullable: true),
                    Specs = table.Column<string>(nullable: true),
                    Name = table.Column<string>(nullable: true),
                    StandardNo = table.Column<string>(nullable: true),
                    AppraisalType = table.Column<int>(nullable: false),
                    ResourcesType = table.Column<int>(nullable: false),
                    Standard = table.Column<string>(nullable: true),
                    Remark = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RResourcesEntities", x => x.Id);
                    table.ForeignKey(
                        name: "FK_RResourcesEntities_RProcessesEntities_RProcessesEntityId",
                        column: x => x.RProcessesEntityId,
                        principalTable: "RProcessesEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "RWorkStepEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    RTechniqueEntityId = table.Column<Guid>(nullable: false),
                    RProcessesEntityId = table.Column<Guid>(nullable: false),
                    WorkStepEntityId = table.Column<Guid>(nullable: false),
                    WorkStepNumber = table.Column<int>(nullable: false),
                    WorkStepName = table.Column<string>(nullable: true),
                    WorkStepContent = table.Column<string>(nullable: true),
                    WorkStepWorking = table.Column<decimal>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RWorkStepEntities", x => x.Id);
                    table.ForeignKey(
                        name: "FK_RWorkStepEntities_RProcessesEntities_RProcessesEntityId",
                        column: x => x.RProcessesEntityId,
                        principalTable: "RProcessesEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "ResourcesEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    TechniqueEntityId = table.Column<Guid>(nullable: false),
                    ProcessesEntityId = table.Column<Guid>(nullable: false),
                    WorkStepEntityId = table.Column<Guid>(nullable: true),
                    Specs = table.Column<string>(nullable: true),
                    Name = table.Column<string>(nullable: true),
                    StandardNo = table.Column<string>(nullable: true),
                    AppraisalType = table.Column<int>(nullable: false),
                    ResourcesType = table.Column<int>(nullable: false),
                    Standard = table.Column<string>(nullable: true),
                    Remark = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ResourcesEntities", x => x.Id);
                    table.ForeignKey(
                        name: "FK_ResourcesEntities_ProcessesEntities_ProcessesEntityId",
                        column: x => x.ProcessesEntityId,
                        principalTable: "ProcessesEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "WorkStepEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    TechniqueEntityId = table.Column<Guid>(nullable: false),
                    ProcessesEntityId = table.Column<Guid>(nullable: false),
                    OriginalWorkStepEntityId = table.Column<string>(nullable: true),
                    WorkStepNumber = table.Column<int>(nullable: false),
                    WorkStepName = table.Column<string>(nullable: true),
                    WorkStepContent = table.Column<string>(nullable: true),
                    WorkStepWorking = table.Column<decimal>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_WorkStepEntities", x => x.Id);
                    table.ForeignKey(
                        name: "FK_WorkStepEntities_ProcessesEntities_ProcessesEntityId",
                        column: x => x.ProcessesEntityId,
                        principalTable: "ProcessesEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "RFormBases",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    FormName = table.Column<string>(nullable: true),
                    SerialNum = table.Column<int>(nullable: false),
                    RWorkStepEntityId = table.Column<Guid>(nullable: false),
                    RProcessesEntityId = table.Column<Guid>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Deptment = table.Column<string>(nullable: true),
                    InspectionSignatureId = table.Column<Guid>(nullable: true),
                    RecordRequirementsId = table.Column<Guid>(nullable: true),
                    MultiMediaId = table.Column<Guid>(nullable: true),
                    MeasuredResultId = table.Column<Guid>(nullable: true),
                    EnvironmentId = table.Column<Guid>(nullable: true),
                    ParentProductNum = table.Column<string>(nullable: true),
                    ParentProductNum_DisplayName = table.Column<string>(nullable: true),
                    ParentProductName = table.Column<string>(nullable: true),
                    ParentProductName_DisplayName = table.Column<string>(nullable: true),
                    FisrtDrawingNum = table.Column<string>(nullable: true),
                    FisrtDrawingNum_DisplayName = table.Column<string>(nullable: true),
                    FirstDrawingName = table.Column<string>(nullable: true),
                    FirstDrawingName_DisplayName = table.Column<string>(nullable: true),
                    SecondDrawingNum = table.Column<string>(nullable: true),
                    SecondDrawingNum_DisplayName = table.Column<string>(nullable: true),
                    SecondDrawingName = table.Column<string>(nullable: true),
                    SecondDrawingName_DisplayName = table.Column<string>(nullable: true),
                    ProductNum = table.Column<string>(nullable: true),
                    ProductNum_DisplayName = table.Column<string>(nullable: true),
                    Model = table.Column<string>(nullable: true),
                    Model_DisplayName = table.Column<string>(nullable: true),
                    RecordElement = table.Column<string>(nullable: true),
                    RecordElement_DisplayName = table.Column<string>(nullable: true),
                    RecordItem = table.Column<string>(nullable: true),
                    RecordItem_DisplayName = table.Column<string>(nullable: true),
                    ToolUsed = table.Column<string>(nullable: true),
                    ToolUsed_DisplayName = table.Column<string>(nullable: true),
                    AbnormalRecord = table.Column<string>(nullable: true),
                    AbnormalRecord_DisplayName = table.Column<string>(nullable: true),
                    Certificate = table.Column<string>(nullable: true),
                    Certificate_DisplayName = table.Column<string>(nullable: true),
                    SecondToolUsed = table.Column<string>(nullable: true),
                    SecondToolUsed_DisplayName = table.Column<string>(nullable: true),
                    ThirdToolUsed = table.Column<string>(nullable: true),
                    ThirdToolUsed_DisplayName = table.Column<string>(nullable: true),
                    Discriminator = table.Column<string>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RFormBases", x => x.Id);
                    table.ForeignKey(
                        name: "FK_RFormBases_REnvironmentEntity_EnvironmentId",
                        column: x => x.EnvironmentId,
                        principalTable: "REnvironmentEntity",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_RFormBases_RInspectionSignatureEntity_InspectionSignatureId",
                        column: x => x.InspectionSignatureId,
                        principalTable: "RInspectionSignatureEntity",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_RFormBases_RMeasuredResultEntity_MeasuredResultId",
                        column: x => x.MeasuredResultId,
                        principalTable: "RMeasuredResultEntity",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_RFormBases_RMultiMediaEntities_MultiMediaId",
                        column: x => x.MultiMediaId,
                        principalTable: "RMultiMediaEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_RFormBases_RWorkStepEntities_RWorkStepEntityId",
                        column: x => x.RWorkStepEntityId,
                        principalTable: "RWorkStepEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_RFormBases_RRecordRequirements_RecordRequirementsId",
                        column: x => x.RecordRequirementsId,
                        principalTable: "RRecordRequirements",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                });

            migrationBuilder.CreateTable(
                name: "RLoadPieceEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    RWorkStepEntityId = table.Column<Guid>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Index = table.Column<int>(nullable: false),
                    Code = table.Column<string>(nullable: true),
                    Name = table.Column<string>(nullable: true),
                    Number = table.Column<int>(nullable: false),
                    Remark = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RLoadPieceEntities", x => x.Id);
                    table.ForeignKey(
                        name: "FK_RLoadPieceEntities_RWorkStepEntities_RWorkStepEntityId",
                        column: x => x.RWorkStepEntityId,
                        principalTable: "RWorkStepEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "FormBases",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    FormName = table.Column<string>(nullable: true),
                    SerialNum = table.Column<int>(nullable: false),
                    WorkStepEntityId = table.Column<Guid>(nullable: false),
                    ProcessesEntityId = table.Column<Guid>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Deptment = table.Column<string>(nullable: true),
                    InspectionSignatureId = table.Column<Guid>(nullable: true),
                    RecordRequirementsId = table.Column<Guid>(nullable: true),
                    MultiMediaId = table.Column<Guid>(nullable: true),
                    MeasuredResultId = table.Column<Guid>(nullable: true),
                    EnvironmentId = table.Column<Guid>(nullable: true),
                    ParentProductNum = table.Column<string>(nullable: true),
                    ParentProductNum_DisplayName = table.Column<string>(nullable: true),
                    ParentProductNum_Enable = table.Column<bool>(nullable: false),
                    ParentProductNum_Show = table.Column<bool>(nullable: false),
                    ParentProductNum_Property = table.Column<int>(nullable: false),
                    ParentProductName = table.Column<string>(nullable: true),
                    ParentProductName_DisplayName = table.Column<string>(nullable: true),
                    ParentProductName_Enable = table.Column<bool>(nullable: false),
                    ParentProductName_Show = table.Column<bool>(nullable: false),
                    ParentProductName_Property = table.Column<int>(nullable: false),
                    FisrtDrawingNum = table.Column<string>(nullable: true),
                    FisrtDrawingNum_DisplayName = table.Column<string>(nullable: true),
                    FisrtDrawingNum_Enable = table.Column<bool>(nullable: false),
                    FisrtDrawingNum_Show = table.Column<bool>(nullable: false),
                    FisrtDrawingNum_Property = table.Column<int>(nullable: false),
                    FirstDrawingName = table.Column<string>(nullable: true),
                    FirstDrawingName_DisplayName = table.Column<string>(nullable: true),
                    FirstDrawingName_Enable = table.Column<bool>(nullable: false),
                    FirstDrawingName_Show = table.Column<bool>(nullable: false),
                    FirstDrawingName_Property = table.Column<int>(nullable: false),
                    SecondDrawingNum = table.Column<string>(nullable: true),
                    SecondDrawingNum_DisplayName = table.Column<string>(nullable: true),
                    SecondDrawingNum_Enable = table.Column<bool>(nullable: false),
                    SecondDrawingNum_Show = table.Column<bool>(nullable: false),
                    SecondDrawingNum_Property = table.Column<int>(nullable: false),
                    SecondDrawingName = table.Column<string>(nullable: true),
                    SecondDrawingName_DisplayName = table.Column<string>(nullable: true),
                    SecondDrawingName_Enable = table.Column<bool>(nullable: false),
                    SecondDrawingName_Show = table.Column<bool>(nullable: false),
                    SecondDrawingName_Property = table.Column<int>(nullable: false),
                    ProductNum = table.Column<string>(nullable: true),
                    ProductNum_DisplayName = table.Column<string>(nullable: true),
                    ProductNum_Enable = table.Column<bool>(nullable: false),
                    ProductNum_Show = table.Column<bool>(nullable: false),
                    ProductNum_Property = table.Column<int>(nullable: false),
                    Model = table.Column<string>(nullable: true),
                    Model_DisplayName = table.Column<string>(nullable: true),
                    Model_Enable = table.Column<bool>(nullable: false),
                    Model_Show = table.Column<bool>(nullable: false),
                    Model_Property = table.Column<int>(nullable: false),
                    RecordElement = table.Column<string>(nullable: true),
                    RecordElement_DisplayName = table.Column<string>(nullable: true),
                    RecordElement_Enable = table.Column<bool>(nullable: false),
                    RecordElement_Show = table.Column<bool>(nullable: false),
                    RecordElement_Property = table.Column<int>(nullable: false),
                    RecordItem = table.Column<string>(nullable: true),
                    RecordItem_DisplayName = table.Column<string>(nullable: true),
                    RecordItem_Enable = table.Column<bool>(nullable: false),
                    RecordItem_Show = table.Column<bool>(nullable: false),
                    RecordItem_Property = table.Column<int>(nullable: false),
                    ToolUsed = table.Column<string>(nullable: true),
                    ToolUsed_DisplayName = table.Column<string>(nullable: true),
                    ToolUsed_Enable = table.Column<bool>(nullable: false),
                    ToolUsed_Show = table.Column<bool>(nullable: false),
                    ToolUsed_Property = table.Column<int>(nullable: false),
                    AbnormalRecord = table.Column<string>(nullable: true),
                    AbnormalRecord_DisplayName = table.Column<string>(nullable: true),
                    AbnormalRecord_Enable = table.Column<bool>(nullable: false),
                    AbnormalRecord_Show = table.Column<bool>(nullable: false),
                    AbnormalRecord_Property = table.Column<int>(nullable: false),
                    Certificate = table.Column<string>(nullable: true),
                    Certificate_DisplayName = table.Column<string>(nullable: true),
                    Certificate_Enable = table.Column<bool>(nullable: false),
                    Certificate_Show = table.Column<bool>(nullable: false),
                    Certificate_Property = table.Column<int>(nullable: false),
                    SecondToolUsed = table.Column<string>(nullable: true),
                    SecondToolUsed_DisplayName = table.Column<string>(nullable: true),
                    SecondToolUsed_Enable = table.Column<bool>(nullable: false),
                    SecondToolUsed_Show = table.Column<bool>(nullable: false),
                    SecondToolUsed_Property = table.Column<int>(nullable: false),
                    ThirdToolUsed = table.Column<string>(nullable: true),
                    ThirdToolUsed_DisplayName = table.Column<string>(nullable: true),
                    ThirdToolUsed_Enable = table.Column<bool>(nullable: false),
                    ThirdToolUsed_Show = table.Column<bool>(nullable: false),
                    ThirdToolUsed_Property = table.Column<int>(nullable: false),
                    Discriminator = table.Column<string>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FormBases", x => x.Id);
                    table.ForeignKey(
                        name: "FK_FormBases_EnvironmentEntity_EnvironmentId",
                        column: x => x.EnvironmentId,
                        principalTable: "EnvironmentEntity",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_FormBases_InspectionSignatureEntity_InspectionSignatureId",
                        column: x => x.InspectionSignatureId,
                        principalTable: "InspectionSignatureEntity",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_FormBases_MeasuredResultEntity_MeasuredResultId",
                        column: x => x.MeasuredResultId,
                        principalTable: "MeasuredResultEntity",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_FormBases_MultiMediaEntities_MultiMediaId",
                        column: x => x.MultiMediaId,
                        principalTable: "MultiMediaEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_FormBases_RecordRequirements_RecordRequirementsId",
                        column: x => x.RecordRequirementsId,
                        principalTable: "RecordRequirements",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_FormBases_WorkStepEntities_WorkStepEntityId",
                        column: x => x.WorkStepEntityId,
                        principalTable: "WorkStepEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "LoadPieceEntities",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    WorkStepEntityId = table.Column<Guid>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Index = table.Column<int>(nullable: false),
                    Code = table.Column<string>(nullable: true),
                    Name = table.Column<string>(nullable: true),
                    Number = table.Column<int>(nullable: false),
                    Remark = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_LoadPieceEntities", x => x.Id);
                    table.ForeignKey(
                        name: "FK_LoadPieceEntities_WorkStepEntities_WorkStepEntityId",
                        column: x => x.WorkStepEntityId,
                        principalTable: "WorkStepEntities",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateIndex(
                name: "IX_BopContents_BopNodeId",
                table: "BopContents",
                column: "BopNodeId",
                unique: true);

            migrationBuilder.CreateIndex(
                name: "IX_BopNodes_BopDescId",
                table: "BopNodes",
                column: "BopDescId");

            migrationBuilder.CreateIndex(
                name: "IX_ChangeRecordEntities_TechniqueEntityId",
                table: "ChangeRecordEntities",
                column: "TechniqueEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_FormBases_EnvironmentId",
                table: "FormBases",
                column: "EnvironmentId");

            migrationBuilder.CreateIndex(
                name: "IX_FormBases_InspectionSignatureId",
                table: "FormBases",
                column: "InspectionSignatureId");

            migrationBuilder.CreateIndex(
                name: "IX_FormBases_MeasuredResultId",
                table: "FormBases",
                column: "MeasuredResultId");

            migrationBuilder.CreateIndex(
                name: "IX_FormBases_MultiMediaId",
                table: "FormBases",
                column: "MultiMediaId");

            migrationBuilder.CreateIndex(
                name: "IX_FormBases_RecordRequirementsId",
                table: "FormBases",
                column: "RecordRequirementsId");

            migrationBuilder.CreateIndex(
                name: "IX_FormBases_WorkStepEntityId",
                table: "FormBases",
                column: "WorkStepEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_LoadPieceEntities_WorkStepEntityId",
                table: "LoadPieceEntities",
                column: "WorkStepEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_ProcessesEntities_TechniqueEntityId",
                table: "ProcessesEntities",
                column: "TechniqueEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_RChangeRecordEntities_RTechniqueEntityId",
                table: "RChangeRecordEntities",
                column: "RTechniqueEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_ResourcesEntities_ProcessesEntityId",
                table: "ResourcesEntities",
                column: "ProcessesEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_RFormBases_EnvironmentId",
                table: "RFormBases",
                column: "EnvironmentId");

            migrationBuilder.CreateIndex(
                name: "IX_RFormBases_InspectionSignatureId",
                table: "RFormBases",
                column: "InspectionSignatureId");

            migrationBuilder.CreateIndex(
                name: "IX_RFormBases_MeasuredResultId",
                table: "RFormBases",
                column: "MeasuredResultId");

            migrationBuilder.CreateIndex(
                name: "IX_RFormBases_MultiMediaId",
                table: "RFormBases",
                column: "MultiMediaId");

            migrationBuilder.CreateIndex(
                name: "IX_RFormBases_RWorkStepEntityId",
                table: "RFormBases",
                column: "RWorkStepEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_RFormBases_RecordRequirementsId",
                table: "RFormBases",
                column: "RecordRequirementsId");

            migrationBuilder.CreateIndex(
                name: "IX_RLoadPieceEntities_RWorkStepEntityId",
                table: "RLoadPieceEntities",
                column: "RWorkStepEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_RProcessesEntities_RTechniqueEntityId",
                table: "RProcessesEntities",
                column: "RTechniqueEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_RResourcesEntities_RProcessesEntityId",
                table: "RResourcesEntities",
                column: "RProcessesEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_RTransducerConverter_InspectionSignatureEntityId",
                table: "RTransducerConverter",
                column: "InspectionSignatureEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_RWorkStepEntities_RProcessesEntityId",
                table: "RWorkStepEntities",
                column: "RProcessesEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_TransducerConverter_InspectionSignatureEntityId",
                table: "TransducerConverter",
                column: "InspectionSignatureEntityId");

            migrationBuilder.CreateIndex(
                name: "IX_WorkStepEntities_ProcessesEntityId",
                table: "WorkStepEntities",
                column: "ProcessesEntityId");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "AnalysisTableInfors");

            migrationBuilder.DropTable(
                name: "BopContents");

            migrationBuilder.DropTable(
                name: "ChangeRecordEntities");

            migrationBuilder.DropTable(
                name: "FileTransfers");

            migrationBuilder.DropTable(
                name: "FormBases");

            migrationBuilder.DropTable(
                name: "LoadPieceEntities");

            migrationBuilder.DropTable(
                name: "MakeResourcesEntity");

            migrationBuilder.DropTable(
                name: "OperationHistorys");

            migrationBuilder.DropTable(
                name: "RChangeRecordEntities");

            migrationBuilder.DropTable(
                name: "ResourcesEntities");

            migrationBuilder.DropTable(
                name: "RFormBases");

            migrationBuilder.DropTable(
                name: "RLoadPieceEntities");

            migrationBuilder.DropTable(
                name: "RMakeResourcesEntity");

            migrationBuilder.DropTable(
                name: "RResourcesEntities");

            migrationBuilder.DropTable(
                name: "RTransducerConverter");

            migrationBuilder.DropTable(
                name: "RVideoEntity");

            migrationBuilder.DropTable(
                name: "TransducerConverter");

            migrationBuilder.DropTable(
                name: "VideoEntity");

            migrationBuilder.DropTable(
                name: "BopNodes");

            migrationBuilder.DropTable(
                name: "EnvironmentEntity");

            migrationBuilder.DropTable(
                name: "MeasuredResultEntity");

            migrationBuilder.DropTable(
                name: "MultiMediaEntities");

            migrationBuilder.DropTable(
                name: "RecordRequirements");

            migrationBuilder.DropTable(
                name: "WorkStepEntities");

            migrationBuilder.DropTable(
                name: "REnvironmentEntity");

            migrationBuilder.DropTable(
                name: "RMeasuredResultEntity");

            migrationBuilder.DropTable(
                name: "RMultiMediaEntities");

            migrationBuilder.DropTable(
                name: "RRecordRequirements");

            migrationBuilder.DropTable(
                name: "RWorkStepEntities");

            migrationBuilder.DropTable(
                name: "RInspectionSignatureEntity");

            migrationBuilder.DropTable(
                name: "InspectionSignatureEntity");

            migrationBuilder.DropTable(
                name: "BopDescs");

            migrationBuilder.DropTable(
                name: "ProcessesEntities");

            migrationBuilder.DropTable(
                name: "RProcessesEntities");

            migrationBuilder.DropTable(
                name: "TechniqueEntities");

            migrationBuilder.DropTable(
                name: "RTechniqueEntities");
        }
    }
}
